
const {create} =require('../controllers/users')
const {verifyUser} = require('../middleware/uesrs')
const {getAvatarInfo} = require('../controllers/users')
const router = require('koa-router'); // 引入路由
const userRouter = new router({
  prefix: '/users'
});
userRouter.post('/',verifyUser, create);
userRouter.get("/:userId/avatar", getAvatarInfo); // get avatar

module.exports = userRouter;